/*********************************************************************************
 *      Copyright:  (C) 2022 maqianjun<1253008684@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  io.c
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(03/21/2022)
 *         Author:  maqianjun <1253008684@qq.com>
 *      ChangeLog:  1, Release initial version on "03/21/2022 08:55:23 PM"
 *                 
 ********************************************************************************/

#include"apue.h"
int main()
{
	int 	c;

	while ((c = getc(stdin)) != EOF) 					//getc(FILE *name):从文件读取字符
		if (putc(c, stdout) == EOF)						//putc(int c, *name):将指定的字符输出到指定的输出流中（文件或屏幕）
			err_sys("output error");

	
	if (ferror(stdin))
		err_sys("input error");

	exit(0);


}


